<table class="table">
	<tr>
		<th>Book Title</th>
		<th>Status</th>
		<th>Post Date</th>
		<th>Action</th>
	</tr>
<?php
$label = "";
foreach ($result->result() as $key => $value) {
 echo '<tr>';
 echo '<td><a>'.$value->post_title.'</a></td>';
 echo '<td>';
   $label = $value->label;
     if($label==1)
     {
     	echo '<a>Public</a>';
     }else{
     	echo '<a>Pending</a>';
     }
 echo '</td>';
 echo '<td><a>'.$value->date_post.'</a></td>';
 echo '<td>';

 echo '<div class="row">';
 echo anchor("admin/editBook/bookId_".$value->postid,'Edit ');
 echo '<a href="">View</a> ';
 echo  anchor("admin/deletepost/".$value->postid,"Delete","");
 echo '</div>';

 echo '</td>';
 echo '</tr>';


}

?>

</table>